curl --request POST \
--url https://api-lr.agent.ai/v1/action/file_converter_encrypt_action \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"input_file_url": "<string>",
"password": "<string>",
"output_variable_name": "encrypted_pdf"
}
'{
"status": 123,
"response": {}
}Password-protect a PDF file. Restricts who can open and read the document.
curl --request POST \
--url https://api-lr.agent.ai/v1/action/file_converter_encrypt_action \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"input_file_url": "<string>",
"password": "<string>",
"output_variable_name": "encrypted_pdf"
}
'{
"status": 123,
"response": {}
}Bearer token from your account (https://agent.ai/user/integrations#api)